<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>员工信息</title>
</head>
<body>
<div>
    <table border="1" width="500">
        <tr>
            <th colspan="2">员工信息</th>
        </tr>
        <tr>
            <td>姓名：</td>
            <td><input type="text" readonly th:value="${#request.getAttribute('emp').empName}" name="empName"></td>
        </tr>
        <tr>
            <td>年龄：</td>
            <td><input type="number" readonly th:value="${#request.getAttribute('emp').empAge}" name="empAge"></td>
        </tr>
        <tr>
            <td>性别：</td>
            <td>
                <span th:text="${#request.getAttribute('emp').empGender}"></span>
            </td>
        </tr>
        <tr>
            <td>创建时间：</td>
            <td>
                <span th:text="${#request.getAttribute('emp').createDate}"></span>
            </td>
        </tr>
        <tr>
            <td>部门编号：</td>
            <td>
                <input type="number" readonly th:value="${#request.getAttribute('emp').deptId}" name="deptId">
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <a th:href="@{/emp}">返回主页</a>
            </td>
        </tr>
    </table>
</div>
</body>
</html>